# **Controler** abstraction class
# 
# With this you can redifine the controls mapping 
# for differents keyboards layouts (AZERTY, QWERTY, BEPO, etc.)
# or simply at will.
#
class Controler
	constructor: (@config)->
	keyPressed: (key) ->
		@config['keys'][key].pressed()
	keyReleased: (key) ->
		@config['keys'][key].released()
